import { createApp } from 'vue'
import './style.css'
import { createPinia } from 'pinia';
import { setupStore } from './stores/store.ts';
// import { useRouteStore } from './stores/modules/counter.ts'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import '@/assets/iconFont/iconfont.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import App from './App.vue'

import router from './router/index.js';
const app = createApp(App);
const pinia = createPinia();
app.use(router);
app.use(pinia);

// const routeStore = useRouteStore();
// routeStore.reset()

setupStore(app);
app.use(ElementPlus, {
    locale: zhCn,
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
